package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the PATIENT_DOCTOR_ADVICE database table.
 * 
 */
@Entity
@Table(name="PATIENT_DOCTOR_ADVICE")
@NamedQuery(name="PatientDoctorAdvice.findAll", query="SELECT p FROM PatientDoctorAdvice p")
public class PatientDoctorAdvice implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="DOCTOR_ADV_ID")
	@SequenceGenerator(initialValue=100,allocationSize=1,name="DOCTOR_ADV_ID", sequenceName="SEQ_1")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DOCTOR_ADV_ID")
	private long doctorAdvId;

	private String diagnosis;

	@Column(name="DOCTOR_ADVICE")
	private String doctorAdvice;

	@Column(name="DOCTOR_ADVICE_TYPE")
	private String doctorAdviceType;

	@Column(name="DOCTOR_STATUS")
	private String doctorStatus;

	//bi-directional many-to-one association to HospWorkPatientErx
	@ManyToOne
	@JoinColumn(name="PRESCRIPTIONNUM")
	private HospWorkPatientErx hospWorkPatientErx;

	public PatientDoctorAdvice() {
	}

	public long getDoctorAdvId() {
		return this.doctorAdvId;
	}

	public void setDoctorAdvId(long doctorAdvId) {
		this.doctorAdvId = doctorAdvId;
	}

	public String getDiagnosis() {
		return this.diagnosis;
	}

	public void setDiagnosis(String diagnosis) {
		this.diagnosis = diagnosis;
	}

	public String getDoctorAdvice() {
		return this.doctorAdvice;
	}

	public void setDoctorAdvice(String doctorAdvice) {
		this.doctorAdvice = doctorAdvice;
	}

	public String getDoctorAdviceType() {
		return this.doctorAdviceType;
	}

	public void setDoctorAdviceType(String doctorAdviceType) {
		this.doctorAdviceType = doctorAdviceType;
	}

	public String getDoctorStatus() {
		return this.doctorStatus;
	}

	public void setDoctorStatus(String doctorStatus) {
		this.doctorStatus = doctorStatus;
	}

	public HospWorkPatientErx getHospWorkPatientErx() {
		return this.hospWorkPatientErx;
	}

	public void setHospWorkPatientErx(HospWorkPatientErx hospWorkPatientErx) {
		this.hospWorkPatientErx = hospWorkPatientErx;
	}

}